package com.dunka.demo.util;

public enum RestCode {
    OK(0, "ok"),
    REQUEST_REFUSED(1, "request refused"),
    REQUEST_UNSUPPORTED(2, "request unsupported"),
    NOT_FOUND(3, "not found"),
    FORMAT_ERROR(4, "format error"),
    INVALID(5, "invalid"),
    CAPTCHA_ERROR(6, "captcha error"),
    FAILURE(7,"operation failure");
    
    public final int code;
    public final String msg;
    
    private RestCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
